package net.youpoint.entity;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(detachable = "true")
public class OptionEntity {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;

	@Persistent
	private String text;

	@Persistent
	private int pop;

	@Persistent
	private QuestionEntity question;

	public String getText() {
		return this.text;
	}

	public void setText(final String text) {
		this.text = text;
	}

	public int getPop() {
		return this.pop;
	}

	public void setPop(final int pop) {
		this.pop = pop;
	}

	public QuestionEntity getQuestion() {
		return this.question;
	}

	public void setQuestion(final QuestionEntity question) {
		this.question = question;
	}

	public Key getKey() {
		return this.key;
	}

	public void setKey(final Key key) {
		this.key = key;
	}
}
